package com.example.config;

import com.example.entity.Goods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value= "GATEWAY-PROVIDE",fallback = OrderHystrixConfig.class )
public interface MyGoodsFeignClient {
    @GetMapping("/goods/find/{id}")
    public Goods find(@PathVariable("id") Integer id);
}
